package com.ljf.tijian.exception;

/**
 * 体检app的使用手册
 */

public enum TijianExceptionEnum {

    MOBILE_NOT_REGISTER(201,"手机号尚未注册"),
    SMS_FAILURE(500,"短信获取失败"),
    SMS_LOGIN_FAILURE(501,"验证码错误,登录失败"),
    DOCTER_NOT_LOGIN(502,"没有登录"),
    PASSWORD_IS_WRONG(202,"密码错误"),
    SYSTEM_ERROR(203,"系统错误"),
    MOBILE_HAS_USED(204,"手机号已被占用"),
    Already_Appointment(205,"您当天已有预约,订单创建失败"),
    DOCTER_LOGIN_TIMEOUT(206,"TOKEN以超时"),
    OVER_DADALINE(300,"超出体检取消期限"),
    REPORT_TEMPLATE_ALREADY_MAKE(407,"体检报告模板已经创建了");


    /**
     * 枚举类中定义了使用的异常编码和使用信息
     */
    private Integer code;
    private String message;

    TijianExceptionEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    TijianExceptionEnum(){

    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
